#!/usr/bin/expect -f
set timeout 20
spawn git pull
expect "Enter passphrase for key '/root/.ssh/id_rsa':"
send "2CkYVLVaI7U4a0u4\r"
expect eof

exec chown www.www /data -R
exec chown root.root /data/mxgpro/service/pull.sh
exec chmod 755 /data/mxgpro/service/pull.sh